﻿
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using G.Runtime;

namespace Conquest
{
    /// <summary>
    /// Description of NamedCityState.
    /// </summary>
    public partial class NamedCityState : UserControl
    {
        private string _StateName;
        private int _1;
        private int _2;
        private int _3;
        
        public string StateName
        {
            get { return _StateName; }
            set
            {
                _StateName = value;
                this.groupBox1.Text = value;
            }
        }
        
        public Conquest.CityState CityState
        {
            get { return cityState1; }
        }
        
        public int First
        {
            get { return _1; }
            set
            {
                _1 = value;
                UpdateLabel();
            }
        }
        
        public int Second
        {
            get { return _2; }
            set
            {
                _2 = value;
                UpdateLabel();
            }
        }
        
        public int Third
        {
            get { return _3; }
            set
            {
                _3 = value;
                UpdateLabel();
            }
        }
            
        private void UpdateLabel()
        {
            this.label1.Text = "" + _1 + "" + _2 + "" + _3;
        }
        
        public NamedCityState()
        {
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
            InitializeComponent();
            
        }
    }
}
